From efb03ea41e0bbc76d6737d5e8f5c80092c963625 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 3 Dec 2003 23:08:44 +0000 Subject: [PATCH] Forgotten fix: don't allow special read/write access for 'developer' --- includes/SpecialAsksql.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/SpecialAsksql.php b/includes/SpecialAsksql.php index a4ecf023d3..2cc45bc91e 100644 --- a/includes/SpecialAsksql.php +++ b/includes/SpecialAsksql.php @@ -68,9 +68,7 @@ class SqlQueryForm { and !preg_match( "/LIMIT/i", $wpSqlQuery ) ) { $wpSqlQuery .= " LIMIT 100"; } - if ( ! $wgUser->isDeveloper() ) { - $connection = wfGetDB( $wgDBsqluser, $wgDBsqlpassword ); - } + $connection = wfGetDB( $wgDBsqluser, $wgDBsqlpassword ); $this->logQuery( $wpSqlQuery ); $res = wfQuery( $wpSqlQuery, DB_WRITE, "SpecialAsksql::doSubmit" ); $this->logFinishedQuery(); -- 2.20.1